package com.atguigu.gmall.gmallsugar.service;

import bean.C3Stats;
import bean.TmStats;
import com.atguigu.gmall.gmallsugar.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service
public class ProductServiceImpl implements ProductService{
    
    @Autowired
    ProductMapper product;
    @Override
    public BigDecimal getGMV(int date) {
        return product.getGMV(date);
    }
    
    @Override
    public List<TmStats> getGMVByTM(int date, int limit) {
        return product.getGMVByTM(date, limit);
    }
    
    @Override
    public List<C3Stats> getGMVByC3(int date, int limit) {
        return product.getGMVByC3(date, limit);
    }
    
    @Override
    public List<Map<String, Object>> getGMVBySpu(int date, int limit) {
        return product.getGMVBySpu(date, limit);
    }
    
}
